<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta content="width=device-width, initial-scale=1.0" name="viewport">
    <title>个人账单列表</title>
    <link href="css/dataroot.css" rel="stylesheet">
</head>
<body>
<div class="container">
    <h1>个人账单列表</h1>
    <div class="search-box">
        <div>
            <label for="storage">仓库：</label>
            <select id="storage">
                <option value="">全部仓库</option>
                <option value="1">西安仓库</option>
                <option value="2">北京仓库</option>
                <option value="3">上海仓库</option>
            </select>
        </div>
        <div>
            <label for="cname">汽车名称：</label>
            <input id="cname" placeholder="请输入汽车名称" type="text">
        </div>
        <div>
            <label for="status">状态：</label>
            <select id="status">
                <option value="">全部状态</option>
                <option value="0">已入库</option>
                <option value="1">已出库</option>
            </select>
        </div>
        <div>
            <label for="startTime">起始时间：</label>
            <input id="startTime" type="date">
        </div>
        <div>
            <label for="endTime">结束时间：</label>
            <input id="endTime" type="date">
        </div>
        <div>
            <button id="searchBtn">查询</button>
        </div>
    </div>

    <table>
        <thead>
        <tr>
            <th data-sort-field="cid" onclick="sortTable('cid')">账单号</th>
            <th>汽车名称</th>
            <th>颜色</th>
            <th>价格</th>
            <th>数量</th>
            <th>仓库</th>
            <th data-sort-field="time" onclick="sortTable('time')">时间</th>
            <th>状态</th>
            <th>创建人</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody id="carList">
        <!-- 数据将通过JavaScript动态加载 -->
        </tbody>
    </table>

    <div class="error-message" id="errorMessage"></div>
    <div class="no-data-message" id="noDataMessage"></div>

    <div class="pagination" id="pagination">
        <!-- 分页将通过JavaScript动态加载 -->
    </div>
</div>

<script src="jsjs/datauser.js"></script>
</body>
</html>